﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BesAsm.Emgaats.Core
{
  /// <summary>
  /// Event arguments for the ModelStateChanged event
  /// </summary>
  public class ModelStateChangedArgs :EventArgs
  {
    private ModelState _state;
    private Model _model;

    /// <summary>
    /// Initializes a new instance of the <see cref="ModelStateChangedArgs"/> class.
    /// </summary>
    /// <param name="model">The Model.</param>
    /// <param name="state">The Model state.</param>
    public ModelStateChangedArgs(Model model, ModelState state)
    {
      _state = state;
      _model = model;
    }

    /// <summary>
    /// Gets the Model.
    /// </summary>
    public Model Model
    {
      get { return _model; }
    }

    /// <summary>
    /// Gets the Model state.
    /// </summary>
    public ModelState State
    {
      get { return _state; }
    }


  }
}
